<%@ page contentType="text/html;charset=UTF-8" %>
<div id="categoryDiv">
	<span>类别：</span>
	<div>
		<a href="${r'${ctx}'}/PublishInfo/list.do?cityId=${r'${query.cityId}'}" style="font-weight:bold;color:#000000">全部</a>
		
		<#list categoryList as category>
	   		&nbsp;&nbsp;<a id="category_${category.categoryId?c}" href="${r'${ctx}'}/PublishInfo/list.do?categoryId=${category.categoryId?c}&cityId=${r'${query.cityId}'}">${category.categoryName}</a>	
		</#list>
	</div>
	<div style="height:2px;line-height:2px" ></div>
	<span>区域：</span>
	<div>
		<a  href="${r'${ctx}'}/PublishInfo/list.do?categoryId=${r'${query.categoryId}'}" style="font-weight:bold;color:#000000">全部</a>&nbsp;&nbsp;
		
		<#list cityList as city>
	   		<a id="city_${city.cityId?c}" href="${r'${ctx}'}/PublishInfo/list.do?cityId=${city.cityId?c}&categoryId=${r'${query.categoryId}'}">${city.name}</a>&nbsp;&nbsp;
		</#list>
	</div>
	<div>
	</div>

  </div>
  <script>
  	if('${r'${query.categoryId}'}'!=''){
  		document.getElementById("category_${r'${query.categoryId}'}").style.color='red';
  		document.getElementById("category_${r'${query.categoryId}'}").style.fontWeight='bold';
  	}
  	if('${r'${query.cityId}'}'!=''){
  		document.getElementById("city_${r'${query.cityId}'}").style.color='red';
  		document.getElementById("city_${r'${query.cityId}'}").style.fontWeight='bold';
  	}
  </script>